package com.jianneng.jdg.model.homeactivity;

import com.example.com.jianneng.jdg.R;
import com.example.com.jianneng.jdg.R.id;
import com.example.com.jianneng.jdg.R.layout;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.LinearLayout;
import android.widget.TextView;
import android.widget.Toast;

public class LoginActivity extends BaseActivity {
private TextView mCommit;
private LinearLayout mLoginBack;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.activity_login);
		init();
	}
	private void init() {
		mCommit = (TextView) findViewById(R.id.user_commit);
		mLoginBack = (LinearLayout) findViewById(R.id.login_back);
		mCommit.setClickable(true);
		mCommit.setFocusable(true);
		mCommit.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent intent = new Intent(getApplicationContext(), MainActivity.class);
				intent.putExtra("id","4");
				intent.putExtra("success", "true");
				startActivity(intent);
				finish();
				
			}
		});
		mLoginBack.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				finish();
				
			}
		});
	}
	

}
